<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic xml:lang="en" id="topic1">
  <title>pg_user_mapping</title>
  <body>
    <p>The system catalog table <codeph>pg_user_mapping</codeph> stores the mappings from local user to remote user. You must have administrator privileges to view this catalog. Access to this catalog is restricted from normal users, use the <codeph>pg_user_mappings</codeph> view instead.</p>
    <table id="table_zgy_xfx_tz">
      <title>pg_catalog.pg_user_mapping</title>
      <tgroup cols="4">
        <colspec colnum="1" colname="col1" colwidth="131pt"/>
        <colspec colnum="2" colname="col2" colwidth="86pt"/>
        <colspec colnum="3" colname="col3" colwidth="85pt"/>
        <colspec colnum="4" colname="col4" colwidth="147pt"/>
        <thead>
          <row>
            <entry colname="col1">column</entry>
            <entry colname="col2">type</entry>
            <entry colname="col3">references</entry>
            <entry colname="col4">description</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="col1"><codeph>umuser</codeph></entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pg_authid.oid</entry>
            <entry colname="col4">OID of the local role being mapped, 0 if the user mapping is public.</entry>
          </row>
          <row>
            <entry colname="col1"><codeph>umserver</codeph></entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pg_foreign_server.oid</entry>
            <entry colname="col4">OID of the foreign server that contains this mapping.</entry>
          </row>
          <row>
            <entry colname="col1"><codeph>umoptions</codeph></entry>
            <entry colname="col2">text[]</entry>
            <entry colname="col3"></entry>
            <entry colname="col4">User mapping-specific options, as "keyword=value" strings.</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </body>
</topic>
